<div style="display: inline-block; padding: 10px; background-color: #8b3737">
    <span style="display: inline-block; height: 50px; width: 50%; background-color: green">a</span><span style="display: inline-block; height: 50px; width: 50%; background-color: red">b</span>
</div>